using System;
using Microsoft.Phone.Controls;

namespace UpYourLife
{
    public enum ApplicationPages
    {
        Map,        
    }

    public static class Navigation
    {
        /// <summary>
        /// Goes to page.
        /// </summary>
        /// <param name="applicationPage">The application page.</param>
        public static void GoToPage(this PhoneApplicationPage phoneApplicationPage, ApplicationPages applicationPage)
        {
            switch (applicationPage)
            {
                case ApplicationPages.Map:
                    phoneApplicationPage.NavigationService.Navigate(new Uri("/Views/MapPage.xaml", UriKind.Relative));
                    break;
            }
        }
    }
}